home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / util / Mac F2C 1.3.sit / Mac F2C 1.3 / Mac F2C Libraries / libF77 Sources / h_abs.c < prev    next >
C/C++ Source or Header  |  1995-01-28  |  151b  |  13 lines

  1. #include "f2c.h"
  2.  
  3. #ifdef KR_headers
  4. shortint h_abs(x) shortint *x;
  5. #else
  6. shortint h_abs(shortint *x)
  7. #endif
  8. {
  9. if(*x >= 0)
  10.     return(*x);
  11. return(- *x);
  12. }
  13.